package com.bjpowernode.app;

public class MyApp8 {

    public static int fun1() {
        int a = 10;

        try {
            a = 100;
            return a;
        } catch (Exception e) {
            return a;
        } finally {
            a = 500;
            //finally中也有return，那么以finally中的return为准
            return a;
        }
    }
    public static void main(String[] args) {
        int i = MyApp8.fun1();
        System.out.println(i);
    }
}
